package com.project;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.kafka.config.KafkaListenerEndpointRegistry;

/**
 * Hello world!
 *
 */
@SpringBootApplication
public class App {

    public static void main( String[] args ) {

        SpringApplication.run(App.class, args);

        KafkaListenerEndpointRegistry registry = ApplicationContextHelper.getBean(KafkaListenerEndpointRegistry.class);
        registry.getListenerContainer("CUPS").start();
        registry.getListenerContainer("QRC").start();
        registry.getListenerContainer("ACP").start();


    }
}
